package com.yy.wga.user.feign.api;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.user.feign.request.UserRelationListReq;
import com.yy.wga.user.feign.response.UserRelationInfoResp;
import com.yy.wga.user.feign.response.UserRelationListResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * 用户粉丝关系
 *
 * @author guochao
 * @since 2024-12-10 22:41:43
 */
@FeignClient(name = "user-relation-feign",
        url = "http://127.0.0.1:9100",
        path = "/api/user/relation/")
public interface UserRelationFeign {

    /**
     * 查询粉丝列表
     *
     * @param request UserRelationListReq
     * @return UserRelationListResp
     */
    @PostMapping("list")
    Result<List<UserRelationListResp>> list(@RequestBody @Valid UserRelationListReq request);
}
